#include "DataStructure/Result/ElementalStrain/QUAD4StrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const QUAD4StrainData& val1, const QUAD4StrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE (m_FD1)
    FIELD_COMPARE (m_X1)
    FIELD_COMPARE (m_Y1)
    FIELD_COMPARE (m_XY1)
    FIELD_COMPARE (m_FD2)
    FIELD_COMPARE (m_X2)
    FIELD_COMPARE (m_Y2)
    FIELD_COMPARE (m_XY2)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const QUAD4StrainData& a, const QUAD4StrainData& b)
{
    return a.m_eId < b.m_eId;
}
